import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import toast from "@/components/common/toast/index.js";

import FastClick from "fastclick";
import VueLazyLoad from "vue-lazyload";

//解决移动端300ms延迟
FastClick.attach(document.body);

//使用懒加载插件
Vue.use(VueLazyLoad, {
  loading: require("assets/img/common/lazyload.gif"),
});

Vue.config.productionTip = false;
//安装toast
Vue.use(toast);
new Vue({
  router,
  store,
  render: (h) => h(App),
  components:{
    App
  }
}).$mount("#app");
